package com.auto.admin.service.impl;

import com.auto.admin.entity.BeansDependencies;
import com.auto.admin.mapper.BeansDependenciesMapper;
import com.auto.admin.service.BeansDependenciesService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 * Description: bean依赖组件解析 服务实现类
 *
 * @author liangshf
 * @date 2021-01-27
 */
@Service
public class BeansDependenciesServiceImpl extends ServiceImpl<BeansDependenciesMapper, BeansDependencies> implements
    BeansDependenciesService {

    @Override
    public List<BeansDependencies> findByBeanId(Long beanId) {
        QueryWrapper<BeansDependencies> wrapper = new QueryWrapper<>();
        wrapper.eq("bean_id", beanId);
        wrapper.eq("del", 0);
        return baseMapper.selectList(wrapper);
    }

}
